package Demo6;

/**
 * ClassName Dog
 * Description TODO
 * Author Yanyan
 * Date 2025/11/11 21:58
 * Version 1.0
 */
public class Dog extends Animal{
    public Dog(String name, int age) {
        super(name,age);
    }

    @Override
    public void eat() {
        System.out.println(this.name + "吃狗粮中");
    }

    public void bark() {
        System.out.println(this.name + "大狗叫！");
    }
}
